package com.chrray.position.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 职位小类表 对象
 *
 * @author wusiwee
 * @email wusiwee@163.com
 * @since 1.0.1 2024-08-07
 */

@Data
@ApiModel(description = "省市区")
@TableName("sys_area")
public class SysArea implements Serializable {
    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "父级区划代码")
    private Long pid;


    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "省/直辖市代码")
    private Long provinceCode;

    @ApiModelProperty(value = "市代码")
    private Long cityCode;

    @ApiModelProperty(value = "区/县代码")
    private Long areaCode;
    @ApiModelProperty(value = "街道/镇代码")
    private Long streetCode;
    @ApiModelProperty(value = "区/乡村代码")
    private Long committeeCode;
    @ApiModelProperty(value = "城乡分类代码")
    private Long committeeType;
    @ApiModelProperty(value = "排序")
    private Integer sort;
    @ApiModelProperty(value = "级别: 1-省/直辖市, 2-市, 3-区/县/地级市, 4-街道/镇, 5-社区/乡村")
    private Integer level;

    @ApiModelProperty(value = "行政区划id")
    private Long districtId;

}
